package com.h2.org.springframework.beans;

import java.util.ArrayList;
import java.util.Collection;
import java.util.List;
import java.util.Map;

public class Bean
{
  private Boolean _abstract;
  private Collection<IValueBean> _beanProperties;
  private Class<?> _clazz;
  private String _clazzName;
  private List<ConstructorArg> _constructorArgs = new ArrayList();
  private String _dependsOn;
  private String _factoryBean;
  private String _factoryMethod;
  private String _id;
  private String _initMethod;
  private Object _instantiatedObject;
  private String _name;
  private String _parent;
  private Map<String, String> _properties;
  private String _scope;
  private BeanType _type;

  public Bean()
  {
  }

  public Bean(String paramString1, String paramString2)
  {
    setId(paramString1);
    setClazzName(paramString2);
  }

  public Boolean getAbstract()
  {
    return this._abstract;
  }

  public Collection<IValueBean> getBeanProperties()
  {
    return this._beanProperties;
  }

  public Class<?> getClazz()
  {
    return this._clazz;
  }

  public String getClazzName()
  {
    return this._clazzName;
  }

  public List<ConstructorArg> getConstructorArgs()
  {
    return this._constructorArgs;
  }

  public String getDependsOn()
  {
    return this._dependsOn;
  }

  public String getFactoryBean()
  {
    return this._factoryBean;
  }

  public String getFactoryMethod()
  {
    return this._factoryMethod;
  }

  public String getId()
  {
    return this._id;
  }

  public String getInitMethod()
  {
    return this._initMethod;
  }

  public Object getInstantiatedObject()
  {
    return this._instantiatedObject;
  }

  public String getName()
  {
    return this._name;
  }

  public String getNameResolved()
  {
    if (getId() != null)
      return getId();
    if (getName() != null)
      return getName();
    return null;
  }

  public String getParent()
  {
    return this._parent;
  }

  public Map<String, String> getProperties()
  {
    return this._properties;
  }

  public String getScope()
  {
    return this._scope;
  }

  public BeanType getType()
  {
    return this._type;
  }

  public void setAbstract(Boolean paramBoolean)
  {
    this._abstract = paramBoolean;
  }

  public void setBeanProperties(Collection<IValueBean> paramCollection)
  {
    this._beanProperties = paramCollection;
  }

  public void setClazz(Class<?> paramClass)
  {
    this._clazz = paramClass;
  }

  public void setClazzName(String paramString)
  {
    this._clazzName = paramString;
  }

  public void setConstructorArgs(List<ConstructorArg> paramList)
  {
    this._constructorArgs = paramList;
  }

  public void setDependsOn(String paramString)
  {
    this._dependsOn = paramString;
  }

  public void setFactoryBean(String paramString)
  {
    this._factoryBean = paramString;
  }

  public void setFactoryMethod(String paramString)
  {
    this._factoryMethod = paramString;
  }

  public void setId(String paramString)
  {
    this._id = paramString;
  }

  public void setInitMethod(String paramString)
  {
    this._initMethod = paramString;
  }

  public void setInstantiatedObject(Object paramObject)
  {
    this._instantiatedObject = paramObject;
  }

  public void setName(String paramString)
  {
    this._name = paramString;
  }

  public void setParent(String paramString)
  {
    this._parent = paramString;
  }

  public void setProperties(Map<String, String> paramMap)
  {
    this._properties = paramMap;
  }

  public void setScope(String paramString)
  {
    this._scope = paramString;
  }

  public void setType(BeanType paramBeanType)
  {
    this._type = paramBeanType;
  }

  public String toString()
  {
    Object[] arrayOfObject = new Object[3];
    arrayOfObject[0] = getId();
    arrayOfObject[1] = getName();
    arrayOfObject[2] = getClazzName();
    return String.format("Bean: %s %s %s", arrayOfObject);
  }

  public static enum BeanType
  {
    static
    {
      MAP = new BeanType("MAP", 2);
      PROPERTIES = new BeanType("PROPERTIES", 3);
      BeanType[] arrayOfBeanType = new BeanType[4];
      arrayOfBeanType[0] = NONE;
      arrayOfBeanType[1] = OBJECT;
      arrayOfBeanType[2] = MAP;
      arrayOfBeanType[3] = PROPERTIES;
    }
  }
}

/* Location:           E:\android\Toy Defense 2_dex2jar.jar
 * Qualified Name:     com.h2.org.springframework.beans.Bean
 * JD-Core Version:    0.6.2
 */